﻿//
// Created by Administrator on 2022/1/18.
//

#include "MyDialog.h"

BEGIN_EVENT_TABLE ( MyDialog, wxFrame )
                EVT_BUTTON ( ID_BUTTON_POST_MESSAGE, MyDialog::OnStartPost )
END_EVENT_TABLE()

MyDialog::MyDialog(wxWindow *parent):wxFrame( parent, wxID_ANY, "abc" ) {
    //SetTitle("abc");
    SetClientSize ( wxSize ( 350, 500 ) );
    dialogRootBoxSizer = new wxBoxSizer ( wxVERTICAL );
    button = new wxButton ( this, ID_BUTTON_POST_MESSAGE, "发送消息" );
    dialogRootBoxSizer->Add ( button, 0, wxALL | wxEXPAND, 5 );
    this->SetSizer( dialogRootBoxSizer );
}

MyDialog::~MyDialog() {

}

void MyDialog::OnStartPost( wxCommandEvent &event ) {
    wxMessageBox( "abc", "cdb");
    wxFindWindowByName()
}
